home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
system
/
ffg202.zip
/
UTIL_BAT.ZIP
/
RECENT.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-10-23
|
1KB
|
35 lines
@echo off
cls
echo This is a listing of files created/modified in the last N minutes.
echo Press any key to begin searching...
pause>nul
echo.
echo.
if %1.==. goto 1_OKAY
if not %1.==. for %%f in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if %1==%%f: goto 1_OKAY
if not %1.==. for %%f in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do if %1==%%f: goto 1_OKAY
if "%1"=="*:" goto 1_OKAY
if "%1"==":" goto 1_OKAY
GOTO USAGE
:1_OKAY
if %2.==. GOTO LASTMINUTE
echo Searching for files created/modified in the last %2 minutes...
echo.
ffg /qmsf %1* /dt /p /t%2n-
goto END
:LASTMINUTE
echo Searching for files created/modified in the last minute...
echo.
ffg /qmsf %1* /dt /p /t1n-
goto END
:USAGE
echo USAGE: %0 [d: [m]]
echo.
echo where d: is drive to search and 'm' is the number of minutes back in
echo time. If no drive is specified, the current drive is searched. If
echo if no 'm' is specified files dated later than one minute ago are found.
echo To specify the 'm' you must explicity specify the drive.
:END
echo Done. Press any key for next demonstration...
pause>nul